package com.itsxb.remote;

import cn.dev33.satoken.annotation.SaIgnore;
import com.itsxb.feign.LoginApi;
import com.itsxb.pojo.dto.LoginDto;
import com.itsxb.result.R;
import com.itsxb.service.ILoginService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;
//Controller
@RestController
public class LoginRemote implements LoginApi {
    @Autowired
    private ILoginService loginService;
    @Override
    //这里是Satoken忽略
    @SaIgnore
    public R saveLogin(LoginDto loginDto) {
        loginService.saveLogin(loginDto);
        return R.success();
    }
}
